package com.app.miwawa.api.eam.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 班级学员关联表
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月10日 下午4:00:01
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_EAM_CLASSES_STUDENT")
public class ClassesStudent extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -6750299790837297150L;

	// 处理人ID
	@Column(name = "user_id", length = 50, nullable = true)
	private String userid;
	
	// 处理人
	@Column(name = "user_name", length = 50, nullable = true)
	private String username;
	
	// 处理时间
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@Column(name = "create_date", nullable = true)
	private Date createDate;
	
	// 学员
	@Column(name = "student", length = 50, nullable = true)
	private String student;
	
	// 学员ID
	@Column(name = "student_id", length = 50, nullable = true)
	private String studentId;
	
	// 班级
	@Column(name = "classes", length = 50, nullable = true)
	private String classes;
	
	// 班级ID
	@Column(name = "classes_id", length = 50, nullable = true)
	private String classesId;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String getClassesId() {
		return classesId;
	}

	public void setClassesId(String classesId) {
		this.classesId = classesId;
	}
}
